package demo1;



public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Circle());
        drawMap(new Flower());
    }

    public static void main1(String[] args) {
        Flower flower = new Flower();
        Circle circle=new Circle();
        Shape[] shapes={flower,circle,flower,circle};
        for (Shape S:shapes ) {
            S.draw();
        }
    }
}
